module.exports = `
<!DOCTYPE html>
<html>
  <head>
    <title>YouTube Downloader</title>
    <style>
    * {
        text-align: center;
      }
      .heading {
        font-family: Arial;
        margin-top:40vh;
      }
      .URL-input, .convert-button {
        font-size:1.3em;
        padding:5px 10px;
      }
      .URL-input {
        border-radius:4px 0px 0px 4px;
        width:30em;
        text-align: left;
        border:2px solid #EEEEEE;
        background: #EEEEEE;
        outline:none;
      }
      .URL-input:focus {
        border:2px solid #0485ff;
      }
      .convert-button {
        border-radius:0px 4px 4px 0px;
        border:2px solid #0485ff;
        background: #0485ff;
        color:white;
      }
    </style>
  </head>
  <body>
    <h1 class="heading">Youtube下载器</h1>
    <input class="URL-input" placeholder="https://www.youtube.com/watch?v=192b-4j6Y_I">
    <button class="convert-button">下载</button>
    <script>
    var convertBtn = document.querySelector('.convert-button');
    var URLinput = document.querySelector('.URL-input');
    convertBtn.addEventListener('click', () => {
      var url = URLinput.value
      var link = document.createElement('a')
      link.download = 'test.mp4'
      link.href = '/download?url=' +url
      link.target = '_blank'
      document.body.appendChild(link)
      link.click()
      document.body.removeChild(link)
    })
    </script>
  </body>
</html>
`